//引入清除默认样式
@import url("./reset.less");

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar:horizontal {
  height: 6px;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #0003;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  cursor: pointer;
  background-color: #0000004d;
}

/* 盒子内容水平居中 */
.box-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 文本超出一行显示省略号 */
.text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 每个路由页面的基本样式 */
.base-page {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background-color: #fff;
  overflow: auto;
  border-top: 4px solid blue;

  .control-box {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .page-box {
    padding: 10px 0;
  }
}

.base-addAndEdit {
  width: 100%;
  height: 100%;
  padding: 0 20px;

  h3 {
    padding: 5px 0;
  }
}

.base-addAndEditRole {
  padding: 20px;
}
